package com.example.demo.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.demo.entity.Customer;
import com.example.demo.entity.ResponseResult;

public interface CustomerService extends IService<Customer> {
    ResponseResult getList();

    ResponseResult getCustomerById(Integer id);

    ResponseResult getCustomerByName(String name);

    ResponseResult saveCustomer(Customer customer);

    ResponseResult updateCustomer(Customer customer);

    ResponseResult deleteById(String id);

    ResponseResult deleteByName(String name);
}
